@extends('admin.layout.layout')
@section('title','板块管理')
@section('con')
<div id="page-wrapper" >
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">板块添加</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-10 col-lg-offset-1">
                @if(count($errors) > 0)
					<div class="alert alert-danger">
		    	        <ul>
		    	            @foreach ($errors->all() as $error)
		    	                <li>{{ $error }}</li>
		    	            @endforeach
		    	        </ul>
		    	    </div>
                @endif
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            请填写相关信息:
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-8 col-lg-offset-2 ">
                                    <form role="form" action="{{url('/admin/block/insert')}}" method="post" enctype="multipart/form-data">
                                        <div class="form-group " style="width:300px">
                                            <label>分区:</label>
                                            <select class="form-control" name="sid" >
                                                <option value="">请选择分区</option>
                                                <option value="1">NBA区</option>
                                                <option value="2">交易区</option>
                                                <option value="3">技术区</option>
                                            </select>
                                        </div>
                                        <div class="form-group " style="width:500px">
                                            <label>板块名:</label>
                                            <input class="form-control" type="text" name="bname" value="" style="width:300px">
                                        </div>
                                        <div class="form-group " style="width:300px">
                                            <label>版主:</label>
                                            <select class="form-control" name="buid" >
                                                <option value="">请选择版主</option>
                                                @foreach($users as $k=>$v)
                                                <option value="{{$v->uid}}" >&nbsp;{{$v->username}}&nbsp;&nbsp;&nbsp;&nbsp;ID:&nbsp;&nbsp;{{$v->uid}}</option>
                                               @endforeach
                                            </select>
                                        </div>
                                        <div class="form-group " style="width:500px">
                                            <label>板块简介:</label>
                                            <textarea name="bintro" style="width:500px;height:60px;" ></textarea>
                                        </div>
                                        <div class="form-group " style="width:500px">
                                            <label>板块公告:</label>
                                            <textarea name="binfo" style="width:500px;height:60px;" ></textarea>
                                        </div>
                                        {{csrf_field()}}
                                        <button type="reset" class="btn btn-default btn btn-info">重置</button>&nbsp;&nbsp;&nbsp;
                                        <button type="submit" class="btn btn-default btn btn-primary">提交</button>
                                    </form>
                                </div>
                               
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>

@endsection